import java.awt.SystemTray;
import java.util.ArrayList;



public class odbcConnectionCheckerV2 {

	public static void main(String[] args) {		

		if (!SystemTray.isSupported()) {
			System.out.println("SystemTray is not supported, this application stops.");
			return;
		}
		
		long timer = 60;
		for (int i = 0; i < args.length; i=i+1) {
			if (args[i].equalsIgnoreCase("-t")) {
				timer = Long.parseLong(args[i+1]);
			}
		}
		
		// Retrieve Command Line Parameters
		ArrayList<connectionObj> odbc = dbRetriever.getConnectionStrings();
		
		//Create the System Tray Object 
		new odbcSysTray(odbc,timer);
	}

}

